From 4c1a45f9abaabe1d86b77e59bb1128310a5ca7dd Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 25 Jan 2012 20:58:55 -0500 Subject: [PATCH] Add some menu markup documentation --- gtk/gtkapplicationwindow.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c index 6115ba5e4c..f048ea49cd 100644 --- a/gtk/gtkapplicationwindow.c +++ b/gtk/gtkapplicationwindow.c @@ -103,6 +103,22 @@ * ]]> * * + * + * The XML format understood by #GtkBuilder for #GMenuModel consists + * of a toplevel menu element, which contains + * one or more item elements. Each + * item element contains + * attribute and link + * elements with a mandatory name attribute. + * link elements have the same content + * model as menu. + * + * Attribute values can be translated using gettext, like other #GtkBuilder + * content. attribute elements can be marked for + * translation with a translatable="yes" attribute. + * It is also possible to specify message context and translator comments, + * using the context and comments attributes. To make use of this, the + * #GtkBuilder must have been given the gettext domain to use. */ typedef GSimpleActionGroupClass GtkApplicationWindowActionsClass; -- 2.30.2